package com.yuandian.api.business_monitor.po;

import com.yuandian.po.BasePageSearch;
import com.yuandian.utils.IpUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 说明：It路径图端查询参数对象
 * @Author yanjun
 * @Date 2020/9/22 8:51
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ItSegmentDataParams extends BasePageSearch {

    private static final long serialVersionUID = -3889710531083751743L;

    /**
     * 查询的表名集合
     */
    private List<String> tableNameList;

    /**
     * 系统id
     */
    private Long systemId;

    /**
     * 端id
     */
    private Long segmentId;

	/** 响应 IP */
	private String responseIp;

	/** 响应端口 */
	private String responsePort;

    /**
     * 选择日期
     */
    @NotBlank(message = "日期不能为空")
    private String dateTime;

	private String responseIpLong;

	public void setResponseIp(String responseIp) {
		this.responseIp = responseIp;
		this.responseIpLong = IpUtils.ipToDecimal(responseIp);
	}
}
